﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GUI
{
	public partial class GamePlay : Form
	{
		public GamePlay()
		{
			InitializeComponent();
		}

		private void GamePlay_FormClosed(object sender, FormClosedEventArgs e)
		{
			beforeClose();
		}

		private void beforeClose()
		{
			Owner.Show();
		}

		private void numericUpDown1_ValueChanged(object sender, EventArgs e)
		{
			int tmpH = (int)this.numericUpDown1.Value;
			int tmpW = (int)this.numericUpDown2.Value;
            gameBoard.ChangeBoardSize(tmpW, tmpH);
		}
	}
}
